
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class GeneratorPattern extends AbstractPattern {
	
	
	protected Ident ident;
	protected Relop relop;
	protected Generator generator;
	
	public GeneratorPattern(Span span, Ident ident,Relop relop,Generator generator) {
		super(span);
		this.ident = ident;
		this.relop = relop;
		this.generator = generator;
	}
	
	
	public Ident getIdent() {
		return ident;
	}
	
	public void setIdent(Ident ident) {
		this.ident = ident;
	}
	
	public Relop getRelop() {
		return relop;
	}
	
	public void setRelop(Relop relop) {
		this.relop = relop;
	}
	
	public Generator getGenerator() {
		return generator;
	}
	
	public void setGenerator(Generator generator) {
		this.generator = generator;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitGeneratorPattern(this);
	}
}
